The Dreamweaver JavaScript API > File manipulation functions > dom.getTextAlignment()

 

dom.getTextAlignment()

Availability

Dreamweaver 3.0

Description

Gets the alignment of the block that contains the selection.

Arguments

None.

Returns

A string containing the value of the ALIGN attribute for the tag associated with the block, or an empty string if the ALIGN attribute is not set for the tag. This value is always returned in lowercase letters.

Enabler

None.